package com.sc.nft.service;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sc.nft.entity.UserConsensus;
import com.sc.nft.entity.vo.UserCollectionConsensusExcelParsingVO;
import com.sc.nft.entity.vo.UserCollectionConsensusListVO;
import com.sc.nft.entity.vo.UserConsensusPageVO;
import com.sc.nft.enums.UserConsensusTypeEnums;
import org.springframework.web.multipart.MultipartFile;

import java.math.BigDecimal;
import java.util.List;

/**
 * 用户共识度表服务接口
 *
 * @author zxy
 * @since 2024-08-24 21:56:44
 * @description 由 Mybatisplus Code Generator 创建
 */
public interface UserConsensusService {

    /**
     * 调整共识度
     * @param userId
     * @param consensusNum
     * @param type
     * @param remark
     */
    void adjustConsensusService(Long userId, Long collectionId, BigDecimal consensusNum, UserConsensusTypeEnums type,String remark,Boolean beforeSmelt);

    UserConsensus getByUserId(Long userId);


    /**
     * admin用户共识度列表
     * @param page
     * @param userTel
     * @return
     */
    Page<UserConsensusPageVO> getUserConsensusAdminPage(Page page, String userTel);

    /**
     * 用户生态藏品共识度
     * @param userId
     * @return
     */
    List<UserCollectionConsensusListVO> getUserCollectionConsensusAdminList(Long userId);

    /**
     * 解析文件
     * @param file
     * @return
     */
    UserCollectionConsensusExcelParsingVO excelPassing(MultipartFile file,Long collectionId);


    void consensusAdjustmentTask();
}
